package com.bnz.staticpage.service.impl;

import com.bnz.staticpage.dao.TbItemRepository;
import com.bnz.staticpage.entity.TbItem;
import com.bnz.staticpage.service.ItemService;
import net.bytebuddy.asm.Advice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xy
 * @date 2022/11/23
 */
@Service
public class ItemServiceImpl implements ItemService {
    @Autowired
    TbItemRepository tbItem;
    @Override
    public List<TbItem> queryAll() {
        return tbItem.findAll();
    }
}
